﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Core</Project>
// <FileName>OrderReturn.cs</FileName>
// <CreateTime>2017-06-13 22:56</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-06-13 22:56" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System;
using Abp.Domain.Entities.Auditing;
using Castle.DynamicProxy;

namespace Vecen.BangChuang.BangChuang.Mall {

    public class OrderReturn: CreationAuditedEntity,IDeletionAudited {

        /// <summary>
        /// 订单ID
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 退货原因
        /// </summary>
        public string Reason { get; set; }


        /// <summary>
        /// 退货备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 是否需要退款
        /// </summary>
        public bool IsNeedReturnMoney { get; set; }

        /// <summary>
        /// 退款金额
        /// </summary>
        public decimal ReturnMoney { get; set; }

        /// <summary>
        /// 退货快递单
        /// </summary>
        public string ExpressCode { get; set; }

        /// <summary>
        /// 快递是否送达
        /// </summary>
        public bool ExpressIsArrive { get; set; }

        /// <summary>
        /// 退货快递公司
        /// </summary>
        public string ExpressCompany { get; set; }
        #region 店长相关
        
        /// <summary>
        /// 是否已确认
        /// </summary>
        public bool IsConfirmed { get; set; }

        /// <summary>
        /// 是否同意
        /// </summary>
        public bool IsAgreed { get; set; }

        /// <summary>
        /// 退货收货地址ID
        /// </summary>
        public int? UserAddressId { get; set; }

        /// <summary>
        /// 是否收到退货物品
        /// </summary>
        public bool IsReceived { get; set; }

        /// <summary>
        /// 实际退款金额
        /// </summary>
        public decimal RealReturnMoney { get; set; }

        /// <summary>
        /// 是否已支付
        /// </summary>
        public bool IsPayed { get; set; }

        #endregion

        /// <summary>Used to mark an Entity as 'Deleted'.</summary>
        public bool IsDeleted { get; set; }

        /// <summary>Deletion time of this entity.</summary>
        public DateTime? DeletionTime { get; set; }

        /// <summary>Which user deleted this entity?</summary>
        public long? DeleterUserId { get; set; }
    }
}